//
//  WLMPictureInfo.swift
//  WeiBo
//
//  Created by Eric on 2017-01-09.
//  Copyright © 2017 Eric. All rights reserved.
//

import UIKit

class WLMPictureInfo: NSObject {
    
    var longIcon: WLMStatus?
    
    var wap360: String?
    
    var bmiddle: String?
    
    var imageURL: URL?
    
    var large: String?
    
    var thumbnail_pic: String? {
        didSet{
            wap360 = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "wap360")
            bmiddle = thumbnail_pic?.replacingOccurrences(of: "thumbnail", with: "bmiddle")
            imageURL = URL(string: wap360 ?? "")
            large = thumbnail_pic?.replacingOccurrences(of: "/thumbnail/", with: "/large/")
        }
    }
    
}
